<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <div>演示v-model的使用方式</div>
        <input v-model="value">
        <div>写一个多选框</div>
        <input type="checkbox" v-model="language" value="java">
        <input type="checkbox" v-model="language" value="golang">
        <input type="checkbox" v-model="language" value="js">
        <input type="checkbox" v-model="language" value="c/c++">
        已选中{{language.join(",")}}
    </div>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{
              language:[],
              value:"14r14"
            }
        })
    </script>
</body>
</html>